//
//  LoadImageViewController.m
//  test02
//
//  Created by lzh on 2021/4/15.
//  Copyright © 2021 NO. All rights reserved.
//

#import "LoadImageViewController.h"
#import "CCLargeImageView.h"
@interface LoadImageViewController ()
@end

@implementation LoadImageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor =[UIColor whiteColor];
    UIScrollView * scrollView = [[UIScrollView alloc]initWithFrame:self.view.bounds];
    scrollView.contentSize = CGSizeMake(self.view.bounds.size.width, 200*9059/750);
    [self.view addSubview:scrollView];
    CCLargeImageView * imageView = [[CCLargeImageView alloc]initWithFrame:CGRectMake((self.view.bounds.size.width-200)/2.0,0, 200, 200*9059/750)];
//    [imageView cc_setImage:[UIImage imageNamed:@"img.jpeg"]];
    [imageView cc_setImageWithUrl:@"https://msb-image.oss-cn-hangzhou.aliyuncs.com/advert/image/2021-04-12/16182124598621618149431012%E7%9F%B3%E8%86%8F%E5%87%A0%E4%BD%95%E4%BD%93%E7%BB%93%E6%9E%84%E5%85%A8%E8%A7%A3.jpeg"];
    [scrollView addSubview:imageView];
    
//    UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectMake((self.view.bounds.size.width-200)/2.0,0, 200, 300*9059/750)];
//       [imageView setImage:[UIImage imageNamed:@"img.jpeg"]];
//       [scrollView addSubview:imageView];
}


@end
